You are here

README.txt in Custom Breadcrumbs 5

Same filename and directory in other branches
  1. 6.2 README.txt
  2. 6 README.txt
  3. 7.2 README.txt
  4. 7 README.txt
/* $Id $ */

Custom Breadcrumbs 5.x-1.x
--------------------------
Summary
-------
* Enable the module
* Assign 'administer custom breadcrumbs' permission to those roles that should
  be allowed to add/edit/delete custom breadcrumbs.
* Assign 'use php in custom breadcrumbs' to roles that should be allowed to use
  php to determine breadcrumb visibility.
* Go to Administer > Site building > Custom breadcrumbs to add new breadcrumbs
* Click "Add a new custom breadcrumb"
* Choose the node type to create a breadcrumb trail for
* For the titles, put each "crumb" one line after another (There is no need to
  put in "home"):

  Item 1
  SubItem A
  SuperSubItem X

* For the paths, put the path to each crumb starting after the domain name. Don't 
  include a leading or trailing slash.

  item1
  item-1/subitem-a
  item-1/subitem-a/supersubitem-x

* Click save to save the breadcrumb
* Visit the page and your breadcrumb should appear!

Description
-----------
As the name suggests, Custom Breadcrumbs allows you to create and modify your
own breadcrumbs based on node type. After enabling the module, click on
Administer > Site building > Custom breadcrumbs. On this page you'll see
the option to add a new custom breadcrumb. 

Clicking on that link, you have the option to select the node type the breadcrumb 
will apply to. There are two text fields below-- "Titles" and "Paths." When creating 
a breadcrumb, you're simply creating a link. In the custom breadcrumbs interface 
"Titles" describes the text of the breadcrumb while "Paths" describes the Drupal 
path the breadcrumb links to. Each Title must have a corresponding Path. 

To give a very simple example of how to use this module, let's say I have a blog on 
my web site called "Deep Thoughts." To create this, I use the Views module to create 
a page at /blog that displays all the node types "blog post." Whenever a user views 
a blog post I want the breadcrumb to show Home > Deep Thoughts instead of simply Home. 
To do this I would simply type "Deep Thoughts" in the "Titles" field and and "blog" 
in the "Paths" field and save my breadcrumb.

Using the Tokens module, the Custom breadcrumbs module becomes much more flexible 
because breadcrumbs can become dynamic. You can create a breadcrumb like 
Home > Deep Thoughts > [Month of Blog Post] [Year of Blog Post], where "Deep Thoughts" 
links to my main blog page and "[Month of Blog Post] [Year of Blog Post]" links to 
a view that shows only blog posts from the month and year the blog post was created 
(e.g. June 2007). For this, you would do the following:

Node Type:
Blog Post

Titles:
Deep Thoughts
[month] [yyyy]

Paths:
blog
blog/[mm]_[yyyy]

(where of course, blog/[mm]_[yyyy] is the path to the view of blog posts from that month 
and year). So if you created a blog pos on June 13, 2007 your breadcrumb would show 
Home > Deep Thoughts > June 2007 and "June 2007" links to "blog/06_2007" which is a view 
of all blog posts from June 2007.

Also, note that Custom Breadcrumbs doesn't actually check to be sure that a particular path 
exists, so you'll have to check yourself to avoid 404 errors.

Only users with 'administer custom breadcrumbs' permission will be allowed to 
create or modify custom breadcrumbs.

Breadcrumb Visibility
---------------------
Users given 'use php in custom breadcrumbs' permission can include php code snippet that 
returns TRUE or FALSE to control whether or not the breadcrumb is displayed. Note that this 
code has access to the $node variable, and can check its type or any other property.

Authors
-------
Michelle, MGN

File

README.txt
View source
  1. /* $Id $ */
  2. Custom Breadcrumbs 5.x-1.x
  3. --------------------------
  4. Summary
  5. -------
  6. * Enable the module
  7. * Assign 'administer custom breadcrumbs' permission to those roles that should
  8. be allowed to add/edit/delete custom breadcrumbs.
  9. * Assign 'use php in custom breadcrumbs' to roles that should be allowed to use
  10. php to determine breadcrumb visibility.
  11. * Go to Administer > Site building > Custom breadcrumbs to add new breadcrumbs
  12. * Click "Add a new custom breadcrumb"
  13. * Choose the node type to create a breadcrumb trail for
  14. * For the titles, put each "crumb" one line after another (There is no need to
  15. put in "home"):
  16. Item 1
  17. SubItem A
  18. SuperSubItem X
  19. * For the paths, put the path to each crumb starting after the domain name. Don't
  20. include a leading or trailing slash.
  21. item1
  22. item-1/subitem-a
  23. item-1/subitem-a/supersubitem-x
  24. * Click save to save the breadcrumb
  25. * Visit the page and your breadcrumb should appear!
  26. Description
  27. -----------
  28. As the name suggests, Custom Breadcrumbs allows you to create and modify your
  29. own breadcrumbs based on node type. After enabling the module, click on
  30. Administer > Site building > Custom breadcrumbs. On this page you'll see
  31. the option to add a new custom breadcrumb.
  32. Clicking on that link, you have the option to select the node type the breadcrumb
  33. will apply to. There are two text fields below-- "Titles" and "Paths." When creating
  34. a breadcrumb, you're simply creating a link. In the custom breadcrumbs interface
  35. "Titles" describes the text of the breadcrumb while "Paths" describes the Drupal
  36. path the breadcrumb links to. Each Title must have a corresponding Path.
  37. To give a very simple example of how to use this module, let's say I have a blog on
  38. my web site called "Deep Thoughts." To create this, I use the Views module to create
  39. a page at /blog that displays all the node types "blog post." Whenever a user views
  40. a blog post I want the breadcrumb to show Home > Deep Thoughts instead of simply Home.
  41. To do this I would simply type "Deep Thoughts" in the "Titles" field and and "blog"
  42. in the "Paths" field and save my breadcrumb.
  43. Using the Tokens module, the Custom breadcrumbs module becomes much more flexible
  44. because breadcrumbs can become dynamic. You can create a breadcrumb like
  45. Home > Deep Thoughts > [Month of Blog Post] [Year of Blog Post], where "Deep Thoughts"
  46. links to my main blog page and "[Month of Blog Post] [Year of Blog Post]" links to
  47. a view that shows only blog posts from the month and year the blog post was created
  48. (e.g. June 2007). For this, you would do the following:
  49. Node Type:
  50. Blog Post
  51. Titles:
  52. Deep Thoughts
  53. [month] [yyyy]
  54. Paths:
  55. blog
  56. blog/[mm]_[yyyy]
  57. (where of course, blog/[mm]_[yyyy] is the path to the view of blog posts from that month
  58. and year). So if you created a blog pos on June 13, 2007 your breadcrumb would show
  59. Home > Deep Thoughts > June 2007 and "June 2007" links to "blog/06_2007" which is a view
  60. of all blog posts from June 2007.
  61. Also, note that Custom Breadcrumbs doesn't actually check to be sure that a particular path
  62. exists, so you'll have to check yourself to avoid 404 errors.
  63. Only users with 'administer custom breadcrumbs' permission will be allowed to
  64. create or modify custom breadcrumbs.
  65. Breadcrumb Visibility
  66. ---------------------
  67. Users given 'use php in custom breadcrumbs' permission can include php code snippet that
  68. returns TRUE or FALSE to control whether or not the breadcrumb is displayed. Note that this
  69. code has access to the $node variable, and can check its type or any other property.
  70. Authors
  71. -------
  72. Michelle, MGN